feat: Allow Skipping Pip Installation#30
Open
mw-root wants to merge 1 commit intokishaningithub:mainfrom
Open
Conversation
Author
|
@kishaningithub the way you're doing checkout in your workflows doesn't appear to work on forked repos. Is there a reason why you |
Owner
|
@mw-root The checkout action does not work within amazon linux 2 container which this action supports |
Author
|
@kishaningithub that makes sense. It appears that there's probably required changes for this to work from forked repos. I have an example of what I've reproduced this for this PR and validated it pulls the change.
install-pip:
description: 'Whether to install pip. Default true.'
default: 'true'
python-version:
description: 'Version of python to be installed. Reads from python-version-file if unset.'
python-version-file:
description: 'Version of python to be installed'
default: '.python-version'
cache:
description: >
[Deprecated] Used to specify whether caching is needed. Set to true, if you'd like to enable caching. Current implementation uses uv which pulls in pre-compiled binaries of python thereby eliminating the need to cache compiled python artifacts.
default: 'true' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change allows consumers to skip pip installation by setting the
install-pipinput tofalse(or really, anything other thantrue).This can speed up the action by around 5sec for those who don't need to use pip.
closes #29